package com.study.agp.room;

import androidx.room.Ignore;
import androidx.room.PrimaryKey;

@androidx.room.Entity
public class UserEntity {
    @PrimaryKey(autoGenerate = true)
    private Long id;
    private String firstName;
    private String lastName;
    private Integer age;

    public UserEntity() {

    }

    @Ignore
    public UserEntity(Long id, String firstName, String lastName, Integer age) {
        this.id = id;
        this.firstName = firstName;
        this.lastName = lastName;
        this.age = age;
    }

    @Ignore
    public UserEntity(String firstName, String lastName, Integer age) {
        this(null, firstName, lastName, age);
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
